{{include file = "layouts/header.tpl"}}
<div class="title_template" id="blogtitle">
	<div class="titlecenter">
		<h3>
			Our&nbsp;<font>Blog</font>
		</h3>
		<p>he latest digital marketing news</p>
	</div>
</div>
<div class="titlecenter pt-t30">
	<div class="titlecenter pt-t30">
		<div class="content f_l">
			<div class="content-txt">
				{{if $postelement != null and $postelement != "" }}
				<div class="meta-top">
					<h1>{{$postelement->post_title}}</h1>
					<div>
						{{foreach $posttags as $tag}} <a href='{{$tag.url}}'
							class="blogtag">{{$tag.name}}</a> {{/foreach}}
					</div>
					<time class="time">{{$postelement->post_date}}</time>
				</div>
				{{$postelement->post_content}} {{/if}}
			</div>
			<div class="page mt40">
				{{if $pre_post != null and $pre_post != "" }} <a
					href="{{$pre_post.url}}" class="pre"><font>&lt;</font>{{$pre_post.name}}</a>
				{{/if}} {{if $nxt_post != null and $nxt_post != "" }} <a
					href="{{$nxt_post.url}}" class="next">{{$nxt_post.name}}<font>&gt;</font></a>
				{{/if}}
			</div>
			<div class="Contact" id="contactus_form">
				<span class="culum-title mt15">Share this post</span> <br> <a
					href="https://twitter.com/yivanetwork"><img
					src="{{$smarty.const.WEBSITE_URL}}public/images/t-icon.png"></a>&nbsp;&nbsp;<a
					href="https://www.facebook.com/pages/Yiva/143313852347181"><img
					src="{{$smarty.const.WEBSITE_URL}}public/images/f-icon.png"></a>&nbsp;&nbsp;<a
					href="#"><img
					src="{{$smarty.const.WEBSITE_URL}}public/images/g-icon.png"></a> <span
					class="culum-title mt40">Comment (<font>{{$comentcount}}</font>)
				</span>
				<div class="Recent">
					<ul class="mt20" id='postcomentsul'>
					{{foreach $postComents as $coment}}
						<li>
							<p class="f_l">
								<span><font>{{$coment['rownum']}}#</font>{{$coment['comment_content']}}</span>
							</p> <a href="#" class="f_l">{{$coment['username']}}</a> <time
								class="recenttime">{{$coment['comment_date']}}</time>
						</li>
					{{/foreach}}
					</ul>
				</div>
				<form>
					<table style="display: inline-block;">
						<tr>
							<td align="right" width="65">Name:</td>
							<td><input type="text" id="postName" class="inputstyle01" tabindex="1"
								style="color: #009DF3;" /></td>
						</tr>
						<tr>
							<td align="right" width="65"
								style="vertical-align: top; padding-top: 5px;">message:</td>
							<td><textarea id="postMessage" class="inputstyle01" tabindex="5"></textarea></td>
						</tr>
						<tr>
							<td align="right" width="65">&nbsp;</td>
							<td><input id="post_comments" type="button" value="Submit" class="inputstyle02 mt15" /></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		  {{include file = "layouts/blogside.tpl"}}
	</div>
</div>
<script language="JavaScript">
         var weburl = '{{$smarty.const.WEBSITE_URL}}';
         var parms = {'id':{{$postid}}};
 </script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
{{include file = "layouts/footer.tpl"}}
